package com.cx.controller;

import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * 支付成功跳转到这个控制器
 */
@Controller
public class PaySuccess {
    @RequestMapping("paysuccess")
    public void paySuccess(HttpServletRequest httpRequest){
        HttpSession httpSession = httpRequest.getSession();
        httpSession.getAttribute("order");
        System.out.println("hhhh");
//        httpRequest.getRequestDispatcher("/WEB-INF/success.html").forward(httpRequest,h);

    }
}
